<head>
    <meta charset="UTF-8">
<title>算法提高 陶陶摘苹果</title>
<link rel="stylesheet" href="../css/main.css">
</head>
 <p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">【问题描述】</span><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p></o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="text-align: left; line-height: 15pt; text-indent: 24pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan; mso-char-indent-count: 2.0" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">陶陶家的院子里有一棵苹果树，每到秋天树上就会结出<span lang="EN-US">n</span>个苹果。苹果成熟的时候，陶陶就会跑去摘苹果。陶陶有个<span lang="EN-US">30</span>厘米高的板凳，当她不能直接用手摘到苹果的时候，就会踩到板凳上再试试。</span><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p></o:p></span></p>
<p style="text-align: left; line-height: 15pt; text-indent: 24pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan; mso-char-indent-count: 2.0" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">现在已知<span lang="EN-US">n</span>个苹果到地面的高度，以及陶陶把手伸直的时候能够达到的最大高度，请帮陶陶算一下她能够摘到的苹果的数目。假设她碰到苹果，苹果就会掉下来。</span><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p></o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">【输入文件】</span><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p></o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="text-align: left; line-height: 15pt; text-indent: 24pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan; mso-char-indent-count: 2.0" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">输入包括两行数据。第一行只包括两个正整数n(5&lt;=n&lt;=200)和m(100&lt;=m&lt;=150),表示苹果数目和桃桃伸手可达到的高度（以厘米为单位）。<span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p></o:p></span>第二行包含<span lang="EN-US">n</span>个<span lang="EN-US">100</span>到<span lang="EN-US">200</span>之间（包括<span lang="EN-US">100</span>和<span lang="EN-US">200</span>）的整数（以厘米为单位）分别表示苹果到地面的高度，两个相邻的整数之间用一个空格隔开。</span><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">【输出文件】</span><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p></o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="text-align: left; line-height: 15pt; text-indent: 24pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan; mso-char-indent-count: 2.0" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">输出包括一行，这一行只包含一个整数，表示陶陶能够摘到的苹果的数目。</span><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p></o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">【样例输入】</span><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p></o:p></span></p>
<p><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt" lang="EN-US">10 110</span></p>
</o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left">&nbsp;</p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt" lang="EN-US">100 200 150 140 129 134 167 198 200 111<o:p></o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">【样例输出】</span><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p></o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: Calibri" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="text-align: left; line-height: 15pt; margin: 0cm 0cm 0pt; mso-pagination: widow-orphan" class="MsoNormal" align="left"><span style="font-family: 宋体; color: black; font-size: 12pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt" lang="EN-US">5<o:p></o:p></span></p>
<p>﻿</p>